$(function(){
    var form = new xhForm($('form'));

    $('#bt_modal_confirm', window.top.document).click(function(){
        form.submit(baseUrl + 'Track/confirmTaskSchool?taskId=' + xhTool.getQuery('iTTId'), {}, function (res) {
            if (xhExtra.checkError(res)) {
                xhExtra.setBtnNormal($('#bt_modal_confirm', window.top.document));
                xhExtra.enableButton($('#bt_modal_confirm', window.top.document));
            } else {
                window.top.xhTop.showSuccess(res.msg);
                window.top.xhTop.getActiveFrame().list.dataGridReload();
                window.top.xhTop.closeModal();
            }

        }, {check: false});

    });
});